package textapp.connector.model;

import java.util.Date;

public class GroupMessageModel {

	private int id;
	
	private GroupModel group;
		
	private UserModel from;
	
	private String text;
	
	private int type; // 0 = normal, 1 = notification
	
	private int status; // 0 = saved by server, 1 = saved by client
	
	private Date createDate;
	
	private Date modifyDate;
	
	private int lifetimeMin; // minutes 

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public GroupModel getGroup() {
		return group;
	}

	public void setGroup(GroupModel group) {
		this.group = group;
	}

	public UserModel getFrom() {
		return from;
	}

	public void setFrom(UserModel from) {
		this.from = from;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public int getLifetimeMin() {
		return lifetimeMin;
	}

	public void setLifetimeMin(int lifetimeMin) {
		this.lifetimeMin = lifetimeMin;
	}
}
